]> dgit.raspbian.org Git - gnome-shell.git/commit
workspace: Move window previews to a child container
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 17 Feb 2021 13:36:36 +0000 (10:36 -0300)
committerMarge Bot <marge-bot@gnome.org>
Sun, 21 Feb 2021 15:47:12 +0000 (15:47 +0000)
commit37bcd3d42845e4cfbc6f1f0a6d525d347bc6aa2b
tree54e2f6e4611f243ddeaf426c86dfdb133e867243
parentb05280a2cd9275270bbeb9b697ff2c41923c8161
workspace: Move window previews to a child container

Currently, Workspace is a single actor that contains both the background,
and all window previews, and is managed by WorkspaceLayout. In the future,
this concentrating aspect of it will bite us; we want the window previews
to be clipped to the allocation, but not the background, since it will
have shadows.

Make Workspace subclass St.Widget with a ClutterBinLayout as layout manager,
and move window previews to a child actor. To reduce the impact of this
extra actor, it's a ClutterActor instead of a StWidget, and the spacing is
still set on Workspace itself.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1691>
js/ui/workspace.js